package com.zxc.gulimall.auth.feign;

import com.zxc.common.utils.R;
import com.zxc.gulimall.auth.vo.UserLoginVo;
import com.zxc.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "member-service")
public interface MemberFeignService {

    @PostMapping(value = "/member/member/register")
    public R register(@RequestBody UserRegisterVo vo);

    @PostMapping(value = "/member/member/login")
    public R login(@RequestBody UserLoginVo vo);
}
